package com.example.myproject.service;

import com.example.myproject.dto.message.ConversationDTO;
import com.example.myproject.dto.message.MessageDTO;
import java.util.List;

public interface MessageService {
    List<ConversationDTO> getUserConversations(Long userId);
    List<MessageDTO> getConversationMessages(Long conversationId);
    MessageDTO sendMessage(Long fromUserId, Long toUserId, String content);
    void markMessageAsReadByMessageId(Long messageId, Long userId);
    MessageDTO getLastMessage(Long conversationId);  // 新增方法
}